* {
  box-sizing: border-box;
}

a {
  color: #000;
}

h2,
p {
  margin: 0;
  padding: 0;
}

input:-webkit-autofill {
  box-shadow: 0 0 0 1000px white inset;
  -webkit-box-shadow: 0 0 0 1000px white inset;
}

html {
  -webkit-overflow-scrolling: touch;
}

body {
  // background-color: $red;
  background-color: $bg-color;
  // position: fixed;
  // width: 100vw;
  // height: 100vh;
  // left: 0;
  // top: 0;
  overflow-x: hidden;
  margin: 0 auto;
  font-size: 12PX!important;
  font-family: PingFang SC,STHeitiSC-Light,Helvetica-Light,arial,sans-serif;
}

button,
input,
textarea {
  color: inherit;
  font-size: 12px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input[type="number"]{
    -moz-appearance: textfield;
}

.view-router {
  background-color: $bg-color;
  height: 100vh;
  overflow-y: auto;
  padding-bottom: 50px;
  box-sizing: border-box;
}

.full-page {
  height: 100vh;
  width: 100vw;
}

.scroll-wrap {
  overflow-y: scroll;
}

.round {
  border-radius: 5px;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}

.line-through {
  text-decoration: line-through;
}

.border-none.van-hairline--top-bottom::after {
  border-width: 0;
}
.van-nav-bar:not(.store-nav-bar){
  transition: background-color .2s linear;
  box-sizing: content-box;
  padding-top: 20px;
  height: 46px;
  .van-nav-bar__left{
    .van-icon{
      color: $red;
    }
  }
}
.goods{
  .goods-detail {
    img {
      width: 100%;
    }
  }
  .store-nav-bar.nav-in .van-nav-bar__title{
    margin-bottom: -10px;
  }
}
.message-list-page{
  .content{
    img {
      width: 100%;
    }
  }
}

.text-ellipsis{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.flex-0{
  flex:0;
}

.goods-sku-box{
  .van-sku__stock{
    display: none;
  }
  .van-sku__quota{
    color: #969799;
  }
}

.icon {
  width: 24px;
  height: 24px;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}


@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
  .van-tabbar--fixed {
    padding-bottom: 22px !important;
    height: 94px !important;
  }
  .safe-bottom{
    padding-bottom: 22px;
  }
  .account-page{
    .btn-box{
      bottom: 44px;
    }
  }
  .van-nav-bar--fixed,
  .fix-bar {
    padding-top: 44px !important;
  }

  .fix-bar {
    padding-bottom: 10px !important;
    height: auto !important;
  }

  .home {
    padding-top: calc(1.76rem + 22px) !important;
    padding-bottom: 22px;
  }
  .page-body {
    padding-top: calc(1.76rem + 22px) !important;
    /* padding-bottom: 44px; */
  }
  .user-page{
    padding-bottom: calc(1.86667rem + 26px) !important;
  }
  .cart-page {
    padding-top: calc(2.02667rem + 22px) !important;
  }
  .confirmOrder{
    padding-top: calc(1.22667rem + 22px) !important;
  }
  .cart-page .submit-bar,.cart-page .operate-bar {
    bottom: calc(1.33333rem + 44px) !important;
  }
  .order-tab-box .van-tabs--line .van-tabs__wrap{ 
    top:calc(1.76rem + 22px) !important;
  }
  .confirmOrder .van-submit-bar{
    padding-bottom: 22px!important;
  }
  .goods .van-popup--bottom{
    padding-bottom: 22px!important;
  }
  .order{
    padding-top:calc(3.06667rem + 22px) !important;
  }
  .page-content{
    padding-top: calc(1.76rem + 22px) !important;
  }
  .setting-page .van-nav-bar,.userInfo-page .van-nav-bar,.account-page .van-nav-bar,
  .about-page .van-nav-bar,.withdraw-page .van-nav-bar,.address-index .van-nav-bar,.add-address .van-nav-bar{ 
    padding-top: 44px;
    padding-top: calc(0.53333rem + 22px) !important;
  }
  .address-index .van-address-list__add{
    bottom: 22px!important;;
  }
  .like-page .content{
    padding-top: calc(1.76rem + 22px) !important;
  }
  .goods{
    margin-bottom: calc(1.33333rem + 22px) !important;
  }
  .goods .van-goods-action{
    padding-bottom: 22px;
  }
  .aftersale .content{
    padding-top: 22px!important;;
  }
}

@media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio:3) {
  .van-tabbar--fixed {
    padding-bottom: 22px !important;
    height: 94px !important;
  }
  .account-page{
    .btn-box{
      bottom: 44px;
    }
  }
  .van-nav-bar--fixed,
  .fix-bar {
    padding-top: 44px !important;
  }

  .fix-bar {
    padding-bottom: 10px !important;
    height: auto !important;
  }

  .home {
    padding-top: calc(1.76rem + 22px) !important;
    padding-bottom: 22px;
  }
  .page-body {
    padding-top: calc(1.76rem + 22px) !important;
    /* padding-bottom: 44px; */
  }
  .user-page{
    padding-bottom: calc(1.86667rem + 26px) !important;
  }
  .cart-page {
    padding-top: calc(2.02667rem + 22px) !important;
  }
  .confirmOrder{
    padding-top: calc(1.22667rem + 22px) !important;
  }
  .cart-page .submit-bar,.cart-page .operate-bar {
    bottom: calc(1.33333rem + 44px) !important;
  }
  .order-tab-box .van-tabs--line .van-tabs__wrap{ 
    top:calc(1.76rem + 22px) !important;
  }
  .confirmOrder .van-submit-bar{
    padding-bottom: 22px!important;
  }
  .goods .van-popup--bottom{
    padding-bottom: 22px!important;
  }
  .order{
    padding-top:calc(3.06667rem + 22px) !important;
  }
  .page-content{
    padding-top: calc(1.76rem + 22px) !important;
  }
  .setting-page .van-nav-bar,.userInfo-page .van-nav-bar,.account-page .van-nav-bar,
  .about-page .van-nav-bar,.withdraw-page .van-nav-bar,.address-index .van-nav-bar,.add-address .van-nav-bar{ 
    padding-top: 44px;
    padding-top: calc(0.53333rem + 22px) !important;
  }
  .address-index .van-address-list__add{
    bottom: 22px!important;;
  }
  .like-page .content{
    padding-top: calc(1.76rem + 22px) !important;
  }
  .goods{
    margin-bottom: calc(1.33333rem + 22px) !important;
  }
  .goods .van-goods-action{
    padding-bottom: 22px;
  }
  .aftersale .content{
    padding-top: 22px!important;;
  }
}

